import { GameConfig } from "./config";

export class LOG {

    public static log(msg: string, ...args: any[]) {
        if(!GameConfig.isShowLog){
            return;
        }
        console.log(msg, ...args);
    }
    public static error(msg: string, ...args: any[]) {
        // if(!GameConfig.isShowLog){
        //     return;
        // }
        console.error(msg, ...args);
    }
    public static warn(msg: string, ...args: any[]) {
        if(!GameConfig.isShowLog){
            return;
        }
        console.warn(msg, ...args);
    }
    public static info(msg: string, ...args: any[]) {
        if(!GameConfig.isShowLog){
            return;
        }
        console.info(msg, ...args); 
    }
}